package com.woniuxy.commons.sentinel;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;


@Component
public class RequestHandler implements RequestOriginParser {
    @Override
    public String parseOrigin(HttpServletRequest request) {
        String s = request.getParameter("test");
        return s;
    }
}
